/*
 * @Author: 小花
 * @Date: 2022-05-21 19:25:39
 * @LastEditors: 小花
 * @LastEditTime: 2022-05-28 19:30:12
 * @FilePath: /permission_client/src/main.ts
 * @Description:
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

// Element-Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// Pinia
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'

// 进度条
import 'nprogress/nprogress.css'

// 动画
import 'animate.css'

// 安装 https://www.cnblogs.com/muriel/p/11631543.html
// 使用 https://fontawesome.com/icons/arrows-rotate?s=solid
import { library } from '@fortawesome/fontawesome-svg-core'
import { fas } from '@fortawesome/free-solid-svg-icons'
// import { far } from '@fortawesome/free-regular-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
library.add(fas)

createApp(App)
  .use(router)
  .use(ElementPlus)
  .use(createPinia().use(piniaPluginPersist))
  .component('font-awesome-icon', FontAwesomeIcon)
  .mount('#app')
